<template>
    <div>
        <h3>Home</h3>
        <button @click="router.push({ name: 'Index', state: { name: 'abc', age: 12, gender: true } })">去index</button>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter()
</script>

<style scoped>

</style>